package com.jd.scaffold.common.enums;


/**
 * 
 * 描述:返回异常映射枚举类
 * <p>创建人：jrzhangwei 创建日期：2014年7月16日 </p>
 * @version V1.0
 */
public enum FailureCodeEnum {
	
	SYSTEM_ERROR("SYSTEM_ERROR","系统异常"),
	INVALID_PARAM("INVALID_PARAM","参数不正确"),
	SERVICE_EXCEPTION("SERVICE_EXCEPTION","服务异常"),
	PARAM_NULL("PARAM_NULL","参数为空"),
	NETWORK_EXCEPITON("NETWORK_EXCEPITON","网络异常"),
	SEND_SMS_CODE_ERROR("SEND_SMS_CODE_ERROR","系统异常"),
	DECRYPT_ERROR("DECRYPT_ERROR","解密失败"),
	CARD_CIPHER_NOT_EXIST("CARD_CIPHER_NOT_EXIST","卡密在系统中不存在"),
	CARD_CIPHER_JDPIN_INVALID("CARD_CIPHER_JDPIN_INVALID","卡密非本人绑定"),
	CARD_CIPHER_STATUS_ERROR("CARD_CIPHER_STATUS_ERROR","卡密状态非法"),
	VALIDATE_CODE_ERROR("VALIDATE_CODE_ERROR","验证码不匹配或者过期"),
	TXN_ID_NULL("TXN_ID_NULL","交易代码为空"),
	TXN_ERROR_MSG_NULL("TXN_ERROR_MSG_NULL","交易错误信息为空"),
	TXN_CONTENT_NULL("TXN_CONTENT_NULL","交易内容信息为空"),

	MQ_PRODUCER_EXCHANGE_ERROR("MQ_PRODUCER_EXCHANGE_ERROR" , "产生兑换消息异常"),
    MQ_PRODUCER_RECHARGE_ERROR("MQ_PRODUCER_RECHARGE_ERROR" , "产生充值消息异常"),
    MQ_PRODUCER_CONSUME_ERROR("MQ_PRODUCER_CONSUME_ERROR" , "产生消费消息异常"),
    MQ_PRODUCER_INCOME_ERROR("MQ_PRODUCER_INCOME_ERROR" , "产生退款消息异常"),
	
    DATA_QUERY_ERROR("DATA_QUERY_ERROR","数据查询异常"),
    DATA_UPDATE_ERROR("DATA_UPDATE_ERROR","数据更新异常"),
	DATA_SAVE_ERROR("DATA_SAVE_ERROR","数据保存异常"),
	;
	
	
	
	
	FailureCodeEnum(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

    private String msg;

    private String code;

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }

}
